﻿using System;
using System.Linq.Expressions;
using Castle.MonoRail.Framework;

namespace Castle.MonoRail.ExtensionMethods {
	public static class IResponseExtensions {
		public static IResponseExtensionsProvider Provider { get; set; }

		public static void Redirect<T>(this IResponse response, Expression<Action<T>> action) where T : Controller {
			Provider.Redirect(response, action);
		}
	}
}